<template>
  <div 
    class="menu-toggle"
    @click="toggleClick">
    <i :class="{
      'icon-menu-collapse': !isActive,
      'icon-menu-expansion': isActive
    }"></i>
  </div>
</template>

<script>
export default {
  name: "Hamburger",
  props: {
    isActive: {
      type: Boolean,
      default: false
    },
    /* 样式部分 */
    color: { type: String, default: "#FFFFFF" },
    width: { type: String, default: "6.4rem" },
    height: { type: String, default: "6.4rem" }
  },
  methods: {
    toggleClick() {
      this.$emit("toggleClick");
    }
  }
};
</script>

<style lang="scss" scoped>
.hamburger-container {
  width: 2rem;
  height: 2rem;
}
.menu-toggle {
  font-size: 20px;
  i {
    display: block;
    width: 20px;
    height: 20px;
  }
}
</style>
